// 内置对象
/**
 * 1、ECMAScript的内置对象
 *  Boolean
 *  Number
 *  String
 *  Date
 *  RegExp
 *  Error
 */

let b: Boolean = new Boolean(1)
let n: Number = new Number(true)
let s: String = new String('abc')
let d: Date = new Date()
let r: RegExp = /^1/
let e: Error = new Error('error message')
b = true


/**
 * 2、BOM和DOM的内置对象
 *  Window
 *  Document
 *  HTMLElement
 *  DocumentFragment
 *  Event
 *  NodeList
 */

const div: HTMLElement | null = document.getElementById('test')
const divs: NodeList = document.querySelectorAll('div')
document.addEventListener('click', (event: MouseEvent) => {
    console.log(event.target)
})
const fragment: DocumentFragment = document.createDocumentFragment()


export {}

